package com.rk.kbk.dao;

import com.rk.kbk.model.Version;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * Created by bilibili on 2017/5/15.
 */
public interface VersionDao extends JpaRepository<Version, Long>,JpaSpecificationExecutor {
    List<Version> findByStatusAndTypeOrderByGmtDatetimeDesc(Integer status, Integer type);
}
